const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  menuRoutes: state => state.user.menuRoutes,
  authList: state => state.user.authList,
  name: state => state.user.name, // 权限名称
  userName: state => state.user.userName, // 用户名
  roleName: state => state.user.roleName, // 角色名
  deptId: state => state.user.deptId, // 机构id
  userId: state => state.user.userId, // 用户id
  avatarUrl: state => state.user.avatarUrl, // 用户头像
  roleId: state => state.user.roleId, // 角色id
  roleList: state => state.user.roleList, // 角色列表
  currentRouter: state => state.router.currentRouter, // 路由
  cacheTags: state => state.tabs.cacheTags, // 缓存菜单
  tabList: state => state.tabs.tabList // tab页签
}
export default getters
